package coder.nav.model.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class NavTaskBO implements Serializable {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("标题")
    @NotBlank(message = "请输入标题")
    private String title;

    @ApiModelProperty("内容")
    private String context;

    @ApiModelProperty("排序（数字越大排序越靠前）")
    private Integer sort;

    @ApiModelProperty("工作日")
    private Integer work;

    @ApiModelProperty("年")
    private Integer year;

    @ApiModelProperty("月")
    private Integer month;

    @ApiModelProperty("日")
    private Integer day;

    @ApiModelProperty("时")
    private Integer hour;

    @ApiModelProperty("分")
    private Integer minute;

    @ApiModelProperty("星期")
    private String weeks;

    @ApiModelProperty("执行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date actionTime;

    @ApiModelProperty("执行方法（类名）")
    @NotBlank(message = "请选择执行方法")
    private String actionFunction;

}
